<template>
  <div class="body">
    <component :is="item.tag" :item="item" :data="data" v-for="item in config.items" :key="item.id"></component>
  </div>
</template>

<script>
  export default {
    name: 'index',
    data() {
      return {
        //配置
        config: {
          name: '',
          items: [],
        },
        //数据
        data: {},
      };
    },
  };
</script>

<style scoped></style>
